<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2.typeof</title>
</head>
<body>
  <!-- 1.typeof能判断的值类型 -->
  1. 所有的值类型
  2. 函数
  3. 判断是否是引用类型（不可以再细分）
  <script>
    // 1.typeof能判断的值类型
    let a 
    const str = 'aaa'
    const n = 100
    const b = true
    const s = Symbol('s')
    console.log(typeof a);
    console.log(typeof str);
    console.log(typeof n);
    console.log(typeof b);
    console.log(typeof s);
    console.log(typeof function f(){});

    // 没法细分 全是object
    console.log(typeof null); 
    console.log(typeof []);
    console.log(typeof {});

  </script>
  
</body>
</html>